package cn.layfolk.seckill.service;

import cn.layfolk.seckill.domain.TOrderInfo;
import cn.layfolk.seckill.vo.SeckillGoodsVo;
import com.baomidou.mybatisplus.extension.service.IService;

public interface TOrderInfoService extends IService<TOrderInfo> {

    TOrderInfo findById(String orderNo);

    String doSeckill(SeckillGoodsVo vo, Long id);
    String doSeckill(Long seckillId, Long userId);

    void handleCreateOrderFailed(Long seckillId);

    void checkOrderTimeout(String orderNo, Long seckillId);

    void updatePaySuccess(String out_trade_no);
}
